![]() |
PBCloseAsync |
||||
Header: | Devices.h | Carbon status: | Supported | |
Closes an open file.
OSErr PBCloseAsync ( ParmBlkPtr paramBlock );
A pointer to a basic File Manager parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion routine.
On output, the result code of the function.
On input, a file reference number to the file to close.
The PBCloseAsync function writes the contents of the access path buffer specified by the ioRefNum field to the volume and removes the access path.
Some information stored on the volume won’t be updated until PBFlushVolAsync is called.
Do not call PBCloseAsync with a file reference number of a file that has already been closed. Attempting to close the same file twice may result in loss of data on a volume. .
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/10/2000)